package cn.lg.soar.system.auth.service;

import cn.lg.soar.database.base.service.IBaseService;
import cn.lg.soar.system.auth.entity.DataScope;
import cn.lg.soar.system.auth.model.DataRuleItemDTO;
import cn.lg.soar.system.auth.model.RoleDataScopeVO;

import java.util.List;
import java.util.Map;

/**
 * DataScope服务层接口
 * 数据源
 * @author luguoxiang
 * @since 2022-04-30
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface IDataScopeService extends IBaseService<DataScope> {

    Map<Long, List<DataRuleItemDTO>> getResourceRuleMap(Long resourceId);

    void setRuleDataScope(RoleDataScopeVO vo);

    List<DataScope> getRuleDataScope(Long roleId);

}
